package com.game.gameshoppingcenter.service;

import com.game.gameshoppingcenter.dao.UserRepository;

import com.game.gameshoppingcenter.entities.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
@Autowired
UserRepository userRepository;


public List<User> getAll(){
return  userRepository.findAll();

}
public User save(User admin){
    return userRepository.save(admin);
}



}
